package com.vueapi.service;

import com.vueapi.domain.HjComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vueapi.domain.dto.CommentSearchDTO;
import com.vueapi.domain.vo.CommentsVo;
import com.vueapi.utils.ResultUtils;

import java.util.ArrayList;
import java.util.List;

/**
* @author 15442
* @description 针对表【hj_comment】的数据库操作Service
* @createDate 2022-09-20 11:44:51
*/
public interface HjCommentService extends IService<HjComment> {

    Integer getCount();

    List<Integer> getCommentAddCount();

    boolean add(HjComment comment);

    /**
     * 根据博客获取获取该博客下的所有评论信息
     * @param blogId 博客ID
     * @return 评论信息
     */
    List<CommentsVo> getCommentsByBlogId(Integer blogId);

    ResultUtils listPage(Integer pageNum, Integer pageSize, CommentSearchDTO searchDTO);

    Boolean commentDeleteByIds(String ids);

    /**
     * 批量审核
     * @param ids ids
     * @return boolean
     */
    Boolean auditPass(String ids);
}
